﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CRMBiz;

namespace CRMWeb.WebServices
{
    /// <summary>
    /// Summary description for SelectAppAndContacts
    /// </summary>
    public class SelectAppAndContacts : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            var input_app_id = string.IsNullOrEmpty(context.Request["app_id"]) ? 0 : int.Parse(context.Request["app_id"]);
            var input_con_id = string.IsNullOrEmpty(context.Request["ContactID"]) ? 0 : int.Parse(context.Request["ContactID"]);
            context.Response.Write(EmailTemplateHandler.BindAppandContact(input_app_id, input_con_id));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}